package com.woniuxy.movice.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.woniuxy.movice.dto.OrderInfo;

public interface OrderMapper {

	@Select("select * from orders where uid=#{uid} and flag=0 order by otime DESC,oid DESC limit 0,20")
	List<OrderInfo> showOrder(int uid);

	@Update("update orders set flag=1 where oid=#{oid}")
	int delOrderByOid(int oid);

}
